<?php
    $arguments['title'] = "路点";
    $arguments['location'] = array(
        "首页",
        "地图",
        "路点",
        );
    $arguments['css'] = array(
        PUBLIC_LIB.'css/core/main.css',
        PUBLIC_LIB.'css/biz/table.css',
        PUBLIC_LIB.'css/biz/form.css',
        PUBLIC_LIB.'fonts/hui_iconfont/iconfont.css',
        PUBLIC_LIB.'js/core/Pagination/kkpager_orange.css',
        PUBLIC_LIB.'js/jquery/jquery-ui-1.11.4.custom/jquery-ui.css',
        PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.css',
        );
    $arguments['js'] = array(
        //PUBLIC_LIB.'js/jquery/jquery-1.4.2.min.js',
        PUBLIC_LIB.'js/core/fancybox/jquery-1.7.1.js',
        PUBLIC_LIB.'js/core/Dropdownlist/chosen.jquery.js',
        PUBLIC_LIB.'js/core/Pagination/kkpager.min.js',
        PUBLIC_LIB.'js/biz/pagelist.js', 
        PUBLIC_LIB.'js/core/DatePicker/WdatePicker.js',
        PUBLIC_LIB.'js/biz/custominput.js',  
        PUBLIC_LIB.'js/core/Tooltip/tooltip.js',
        PUBLIC_LIB.'js/jquery/jquery-ui-1.11.4.custom/jquery-ui.js',
        PUBLIC_LIB.'js/biz/ajaxfun.js',
        PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.js',
        PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.pack.js',
        PUBLIC_LIB.'js/biz/floorList.js',      
        );
    
    importHeader($arguments);
?>
    <div class="formtitle"><span>路点</span></div>
    <div class="search" style="margin-bottom:65px;"> 
    <input type="hidden" id="floor_no" value="<?php if(isset($floorId)){echo $floorId;}?>">
    <button type="button" class="tool tool_left" id="addRoads" style="width:100px;float:right;"><i class="Hui-iconfont">&#xe600;</i>新增</button> 
          
    </div>
    <div class="table_box tablelist">
        <table width="100%">
            <tr>
                <th width="20%">坐标</th>
                <th width="20%">可否精确定位</th>
                <th width="20%">可否长期停靠</th>
                <th width="20%">可否原地转向</th>
                <th width="20%">操作</th>
            </tr>
        </table>
        <table width="100%">
    <?php
            if(isset($roadDetail)&&!empty($roadDetail)&&count($roadDetail)>0){
                foreach($roadDetail as $content){
    ?>
        <tr>
                <td width="20%"><?php echo $content->coord;?></td>
                <td width="20%"><?php if($content->exactly==1){echo '可以';}else{echo '不可以';}?></td>
                <td width="20%"><?php if($content->longStop==1){echo '可以';}else{echo '不可以';}?></td>
                <td width="20%"><?php if($content->turnRound==1){echo '可以';}else{echo '不可以';}?></td>
                <td width="20%">
                    <a href="/Floor/roadEdit/?pointId=<?php echo $content->pointId;?>" class='roadEdit'><div class="tools tool_left "><i class="Hui-iconfont">&#xe60c;</i>修改</div></a>
                    <a href="javascript:roadDelete('<?php echo $content->pointId;?>','<?php echo $content->coord;?>')"><div class="tools tool_left"><i class="Hui-iconfont">&#xe609;</i>删除</div></a>
                    <a href="/Floor/setPath/?floorId=<?php echo $floorId;?>&pointId=<?php echo $content->pointId;?>&coorCurrent=<?php echo $content->coord;?>" class='setPath'><div class="tools tool_left "><i class="Hui-iconfont">&#xe6c9;</i>设置路径</div></a>
                </td>
            </tr>
       <?php
        }
    }else{
       ?>
            <tr><td colspan="8"><?php echo isset($noAuth)?$noAuth:'没有查询到任何路点信息';?></td></tr>
        <?php
            }
        ?>
        </table>
    </div>

    <div class="pager" id="kkpager" data-total="<?php
    if(empty($result->list)){
        echo 1;
    }else{
        echo $result->page;
    }
    ?>"></div>
    <?php importFooter();?>